home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / totallys.swf / scripts / frame_438 / PlaceObject2_145_130 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-28  |  721 b   |  32 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.point >= 30000)
  3.    {
  4.       _root.memsc = _root.sc;
  5.       _root.mempoints = _root.point + _root.memsc * 1000;
  6.       _root.gotoAndStop("win");
  7.    }
  8.    else if(_root.fin == 1)
  9.    {
  10.       _root.mempoints = _root.point;
  11.       _root.gotoAndStop("endl01");
  12.    }
  13.    if(_root.b == 1)
  14.    {
  15.       _root.memgun = _root.canon._y;
  16.       _root.canon._y += 10;
  17.       j = 1;
  18.       while(_root.nmax >= j)
  19.       {
  20.          if(_root.cible.impact.hitTest(_root["popc" + j].pophit))
  21.          {
  22.             if(_root["popc" + j].popcol == 1)
  23.             {
  24.                _root["popc" + j].collision = 1;
  25.             }
  26.          }
  27.          j++;
  28.       }
  29.       _root.b = 0;
  30.    }
  31. }
  32.